<extend name="Public/base" />
<block name="body">
    <div class="main-title" style="padding-bottom: 10px;">
        <h2> <span style='color: red;'>{$shopId|get_sp_shop_name}</span> 调货列表</h2>
    </div>
    <div class="cf">
        <div class="fl ">
            <a href="{:U('createmytransfer')}&shopId={$shopId}" class='btn btn-primary'>创建调货单</a>
        </div>
        <!-- 高级搜索 -->
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table>
            <thead>
            <tr>
                <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                <th>批次号</th>
                <th>申请门店</th>
                <th>调拨门店</th>
                <th>申请时间</th>
                <th>状态</th>
                <th>备注</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
                        <td><a href="{:U('SpTransferproduct/transferdetail')}&id={$vo['id']}">{$vo.batchNum}</a> </td>
                        <td>{$vo.applyShopId|get_sp_shop_name}</td>
                        <td>{$vo.sendShopId|get_sp_shop_name}</td>
                        <td>{$vo.createat|time_format}</td>
                        <td>{$vo.transferStatus|get_transfer_status}</td>
                        <td>{$vo.remark}</td>
                        <td>
                            <a href="{:U('SpTransferproduct/transferdetail')}&id={$vo['id']}" class="btn btn-primary">详情</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //搜索查询
        $('#submit').click(function () {
            document.getElementById("form-search").submit()
        });
        //导航高亮
        highlight_subnav('{:U('SpTransferproduct/index')}');
    </script>
</block>